package bean;
/***********************************************************************
 * Module:  storeinfo.java
 * Author:  龙儿
 * Purpose: Defines the Class storeinfo
 ***********************************************************************/

import java.util.*;

/** @pdOid 3d05cc1e-2715-4071-8d3d-e07963c9a473 */
public class storeinfo {
   /** @pdOid c726769e-016a-4160-85f5-a2be44bb68f3 */
   public int amount = 0;
   
   /** @pdRoleInfo migr=no name=bookinfo assc=reference6 mult=1..1 side=A */
   public bookinfo bookinfo;
   
   
   /** @pdGenerated default parent getter */
   public bookinfo getBookinfo() {
      return bookinfo;
   }
   
   /** @pdGenerated default parent setter
     * @param newBookinfo */
   public void setBookinfo(bookinfo newBookinfo) {
      if (this.bookinfo == null || !this.bookinfo.equals(newBookinfo))
      {
         if (this.bookinfo != null)
         {
            bookinfo oldBookinfo = this.bookinfo;
            this.bookinfo = null;
            oldBookinfo.removeStoreinfo(this);
         }
         if (newBookinfo != null)
         {
            this.bookinfo = newBookinfo;
            this.bookinfo.addStoreinfo(this);
         }
      }
   }

}